<?php 
$SQL="SELECT id FROM users WHERE idusuario=$idu";
$rs=$forms2->Execute($SQL) or DIE ("Error: $SQL");
$SQL="SELECT idparent FROM idsent WHERE id=".$rs->Fields("id");
$rs2=$forms2->Execute($SQL) or DIE ("Error: $SQL");
$idsuc=$rs2->Fields("idparent");

if(strstr($level,"ADM") or $idorg==23){
$valorfiltro="";
} else {
$sel=$idsuc;
$valorfiltro=$idsuc;
}
?>